<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!-- view 层 模板-->
<div id="app">
    <button v-on:click="sayHi">click me</button>
    <br>
     输入的文本 <input type="text" v-model="message"> {{message}}
    <br>
    长文本 <textarea type="text" v-model="message"></textarea> {{message}}
    <br>

    性别
    <input type="radio" name="sex" value="男">男
    <input type="radio" name="sex" value="女">女

    <div>
        <br>
        性别
        <input type="radio" name="sex" value="男" v-model="qingjiang">男
        <input type="radio" name="sex" value="女" v-model="qingjiang">女
        <p>
            选中了谁 :{{qingjiang}}
        </p>
    </div>
    <!--下拉框-->
    <select  v-model="aaaaaaaa">
        <option value="" disabled>--请选择--</option>
        <option>A</option>
        <option>B</option>
        <option>C</option>
    </select>
    <span>
        value:{{aaaaaaaa}}
    </span>
</div>

<br>
<!--1.导入vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
<script>
    var vm = new Vue({
        el: "#app",
        //model :数据
        data: {
            message: "123",
            // checked:false
            qingjiang:'',
            aaaaaaaa:''
        },
        methods: {
            //方法必须定义在vue的methods方法中 v-on:绑定实践
            sayHi: function () {
                alert(this.message)
            }
        }

    });
</script>
</body>
</html>
